list=[1,2,3,4,5,6,7,8,9,10]

list1=[]
index=0
while index<len(list):
    if list[index]%2==0:
        list1.append(list[index])
    index+=1
print(list1)

list2=[]
for i in list:
    if i%2!=0:
        list2.append(i)

print(list2)